//package com.lyp.adapters;
//
//import android.support.v7.widget.RecyclerView;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.LinearLayout;
//import android.widget.TextView;
//
//import com.lyp.jsonbean.CarOrdersDetailsBean;
//import com.lyp.jsonbean.PersonageBean;
//import com.tjl.yangxixi.R;
//
//import java.util.List;
//
///**
// * 作者:ChenXi 时间:2017/6/2 13: 37
// */
////个人信息
//public class PsersonAdapter extends RecyclerView.Adapter<PsersonAdapter.MyViewHolder>{
//
//    private List<PersonageBean.DataBean> mList;
//    public PsersonAdapter(List<PersonageBean.DataBean> list) {
//        mList = list;
//    }
//
//    @Override
//    public MyViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
//        MyViewHolder holder = new MyViewHolder(LayoutInflater.from
//                (viewGroup.getContext()).inflate(R.layout.activity_personage_message, viewGroup, false));
//        return holder;
//    }
//
//    @Override
//    public void onBindViewHolder(MyViewHolder myViewHolder, int i) {
//        myViewHolder.mNumber.setText(mList.get(i).getUser());
//        myViewHolder.mMendian.setText(mList.get(i).getCompany_name());
//        if (mList.get(i).getManager().equals("0")){
//            myViewHolder.mZhiwei.setText("销售员");
//        }
//        else if (mList.get(i).getManager().equals("1"))
//            myViewHolder.mZhiwei.setText("经理");
//    }
//
//    @Override
//    public int getItemCount() {
//        return mList.size();
//    }
//
//    public class MyViewHolder extends RecyclerView.ViewHolder {
//        TextView mNumber;
//        TextView mMendian;
//        TextView mZhiwei;
//
//        public MyViewHolder(View view) {
//            super(view);
//            mNumber = (TextView) view.findViewById(R.id.tv_pserson_number);
//            mMendian = (TextView) view.findViewById(R.id.tv_pserson_mendian);
//            mZhiwei = (TextView) view.findViewById(R.id.tv_pserson_zhiwei);
//
//        }
//    }
//}
